﻿using System;
using Library;

namespace App
{
   internal class Program
   {
      private static void Main()
      {
         Copier.Reader = new PaperTape();
         Copier.Writer = new Printer();

         Copier.Copy();
      }
   }

   internal class PaperTape : IReader, IWriter
   {
      public char Read()
      {
         return char.ToUpper(Console.ReadKey().KeyChar);
      }
      public void Write(char c)
      {
         Console.Write("::" + c);
      }
   }
   internal class Keyboard : IReader
   {
      public char Read()
      {
         return Console.ReadKey().KeyChar;
      }
   }
   internal class Printer : IWriter
   {
      public void Write(char c)
      {
         Console.Write(c);
      }
   }
}